<?php

namespace App\Models\Game\Stats\NDau;

use App\Models\Game\Model;
use App\Models\Game\Platform\Org;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Game extends Model
{

    /**
     * 数据表名称
     *
     * @var string
     */
    protected $table = 't_operation_data_ndau_game';

    /**
     * 获得平台信息
     *
     * @return BelongsTo
     */
    public function org(): BelongsTo
    {
        return $this->belongsTo(Org::class, 'plat_code', 'code')->withTrashed();
    }
}
